using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Attributes.DomainAttributes;
using Baci.Net.ToolKit.ArcGISProGeoprocessor.Models.Enums;
using System.Collections.Generic;
using System.ComponentModel;

namespace Baci.ArcGIS._UtilityNetworkTools
{
    /// <summary>
    /// <para>Add Remove Feature Rule</para>
    /// <para>Add a remove feature rule to a diagram template</para>
    /// <para>向逻辑示意图模板添加移除要素规则</para>
    /// </summary>    
    [DisplayName("Add Remove Feature Rule")]
    public class AddRemoveFeatureRule : AbstractGPProcess
    {
        /// <summary>
        /// 无参构造
        /// </summary>
        public AddRemoveFeatureRule()
        {

        }

        /// <summary>
        /// 有参构造
        /// </summary>
        /// <param name="_in_utility_network">
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_template_name">
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_is_active">
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_source_type">
        /// <para>Source Type</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_inverse_source_selection">
        /// <para>Rule Process</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        /// <param name="_network_source">
        /// <para>Network Sources</para>
        /// <para></para>
        /// <para></para>
        /// </param>
        public AddRemoveFeatureRule(object _in_utility_network, object _template_name, _is_active_value _is_active, _source_type_value _source_type, _inverse_source_selection_value _inverse_source_selection, List<object> _network_source)
        {
            this._in_utility_network = _in_utility_network;
            this._template_name = _template_name;
            this._is_active = _is_active;
            this._source_type = _source_type;
            this._inverse_source_selection = _inverse_source_selection;
            this._network_source = _network_source;
        }
        public override string ToolboxName => "Utility Network Tools";

        public override string ToolName => "Add Remove Feature Rule";

        public override string CallName => "un.AddRemoveFeatureRule";

        public override List<string> AcceptEnvironments => [];

        public override object[] ParameterInfo => [_in_utility_network, _template_name, _is_active.GetGPValue(), _source_type.GetGPValue(), _inverse_source_selection.GetGPValue(), _network_source, _description, _out_utility_network, _out_template_name];

        /// <summary>
        /// <para>Input Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Network")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _in_utility_network { get; set; }


        /// <summary>
        /// <para>Input Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Input Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public object _template_name { get; set; }


        /// <summary>
        /// <para>Active</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Active")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _is_active_value _is_active { get; set; }

        public enum _is_active_value
        {
            /// <summary>
            /// <para>ACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("ACTIVE")]
            [GPEnumValue("true")]
            _true,

            /// <summary>
            /// <para>INACTIVE</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INACTIVE")]
            [GPEnumValue("false")]
            _false,

        }

        /// <summary>
        /// <para>Source Type</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Source Type")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _source_type_value _source_type { get; set; }

        public enum _source_type_value
        {
            /// <summary>
            /// <para>JUNCTIONS</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("JUNCTIONS")]
            [GPEnumValue("JUNCTIONS")]
            _JUNCTIONS,

            /// <summary>
            /// <para>EDGES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EDGES")]
            [GPEnumValue("EDGES")]
            _EDGES,

            /// <summary>
            /// <para>BOTH</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("BOTH")]
            [GPEnumValue("BOTH")]
            _BOTH,

        }

        /// <summary>
        /// <para>Rule Process</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Rule Process")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public _inverse_source_selection_value _inverse_source_selection { get; set; }

        public enum _inverse_source_selection_value
        {
            /// <summary>
            /// <para>EXCLUDE_SOURCE_CLASSES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("EXCLUDE_SOURCE_CLASSES")]
            [GPEnumValue("EXCLUDE_SOURCE_CLASSES")]
            _EXCLUDE_SOURCE_CLASSES,

            /// <summary>
            /// <para>INCLUDE_SOURCE_CLASSES</para>
            /// <para></para>
            /// <para></para>
            /// </summary>
            [Description("INCLUDE_SOURCE_CLASSES")]
            [GPEnumValue("INCLUDE_SOURCE_CLASSES")]
            _INCLUDE_SOURCE_CLASSES,

        }

        /// <summary>
        /// <para>Network Sources</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Network Sources")]
        [Description("")]
        [Option(OptionTypeEnum.Must)]
        public List<object> _network_source { get; set; }


        /// <summary>
        /// <para>Description</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Description")]
        [Description("")]
        [Option(OptionTypeEnum.optional)]
        public object _description { get; set; } = null;


        /// <summary>
        /// <para>Output Network</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Network")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_utility_network { get; set; }


        /// <summary>
        /// <para>Output Diagram Template</para>
        /// <para></para>
        /// <para></para>
        /// <para></para>
        /// </summary>
        [DisplayName("Output Diagram Template")]
        [Description("")]
        [Option(OptionTypeEnum.derived)]
        public object _out_template_name { get; set; }


        public AddRemoveFeatureRule SetEnv()
        {
            base.SetEnv();
            return this;
        }

    }

}